import { connect } from "react-redux";
import {Cart} from "../components"
import {  addToCart,reduceToCart} from "../actions";
const mapStateToProps = state => {
  //4.将仓库里state转化为props，组件间数据传递只能通过props

  return {
    carts: state.carts,
    boo  : state.login,

  };
};


export default connect(mapStateToProps,{addToCart,reduceToCart})(Cart);
